﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/System/System.master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<AFI.Speargun.Web.Models.Currency>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    货币类型 - 列表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        列表</h2>
    <table width="500" border="0" cellpadding="0" cellspacing="0" class="data-table">
        <tr>
            <th scope="col">
                <%= Html.ActionLink("[新建]", "CreateCurrency")%>
            </th>
            <th scope="col">
                名称
            </th>
            <th scope="col">
                货币符号
            </th>
            <th scope="col">
                格式化模板
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.ActionLink("[编辑]", "EditCurrency", new { id = item.CurrencyId })%>
                |
                <%= Html.ActionLink("[删除]", "DeleteCurrency", new { id = item.CurrencyId })%>
            </td>
            <td>
                <%= Html.Encode(item.Appellation) %>
            </td>
            <td>
                <%= Html.Encode(item.Symbol) %>
            </td>
            <td>
                <%= Html.Encode(item.SymbolFormat) %>
            </td>
        </tr>
        <% } %>
    </table>
</asp:Content>
